import { BasicColumn, FormSchema } from '/@/components/Table';

export const useOperationLogsQueryColumns = (): BasicColumn[] => {
  return [
    { title: '', dataIndex: 'operationId' },
    { title: '', dataIndex: 'businessType' },
    { title: '', dataIndex: 'businessTypeStr' },
    { title: '', dataIndex: 'requestMethod' },
    { title: '', dataIndex: 'requestModule' },
    { title: '', dataIndex: 'requestUrl' },
    { title: '', dataIndex: 'calledMethod' },
    { title: '', dataIndex: 'operatorType' },
    { title: '', dataIndex: 'operatorTypeStr' },
    { title: '', dataIndex: 'userId' },
    { title: '', dataIndex: 'username' },
    { title: '', dataIndex: 'operatorIp' },
    { title: '', dataIndex: 'operatorLocation' },
    { title: '', dataIndex: 'deptId' },
    { title: '', dataIndex: 'deptName' },
    { title: '', dataIndex: 'operationParam' },
    { title: '', dataIndex: 'operationResult' },
    { title: '', dataIndex: 'status' },
    { title: '', dataIndex: 'statusStr' },
    { title: '', dataIndex: 'errorStack' },
    { title: '', dataIndex: 'operationTime' },
  ];
};

export const useOperationLogsQuerySearchForm = (): FormSchema[] => {
  return [{ field: 'query', label: '', component: 'Input' }];
};
